

import 'package:basic_common/common_exports.dart';
import 'package:basic_common/global_getx.dart';
import 'package:basic_modle/dr_profile_data.dart';

class AuthInfoController extends GetxController
    with GetSingleTickerProviderStateMixin {
  TabController? tabController;
  final titleList = [
    {"attr": "实名认证", "status": "0"},
    {"attr": "医生身份认证", "status": '1'},
    {"attr": "资质认证资料", "status": "2"},
  ];
  DoctorData? doctorInfo;
  IdentityData? identityInfo;
  final type = 0.obs;
  @override
  void onInit() {
    // TODO: implement onInit
    super.onInit();
      doctorInfo = globalGetx.doctorInfo!;
    identityInfo = globalGetx.identityInfo!;
    tabController =
        TabController(initialIndex: 0, length: titleList.length, vsync: this)
          ..addListener(() {
            if (!tabController!.indexIsChanging) {
              int pageIndex = tabController!.index;
              type.value = pageIndex;
            }
          });
  
  }
}
